package com.yingxue.lesson.vo.resp;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author chahua
 * @date 2022/4/17 20:12
 **/
@Data
public class DeptRespNodeVO {

    @ApiModelProperty(value = "部门id")
    private String id;

    @ApiModelProperty(value = "部门名称")
    private String title;

    @ApiModelProperty("是否展开 默认true")
    private boolean spread=true;

    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    @ApiModelProperty(value = "子集叶子节点")
    private List<DeptRespNodeVO> children;
}